//
//  activityTableViewCell.m
//  周末豆瓣
//
//  Created by dllo on 15/12/26.
//  Copyright © 2015年 lanou. All rights reserved.
//

#import "activityTableViewCell.h"

@implementation activityTableViewCell


- (void)dealloc {
    [_imag release];
    [_imag1 release];
    [_imag2 release];
    [_imag3 release];
    [_imagView release];
    [_timeLabel release];
    [_titleLabel release];
    [_addressLabel release];
    [_label release];
    [_label11 release];
    [_label2 release];
    [_label22 release];
    [_label release];
    [_typeLabel release];
    [super dealloc];
    
}



- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createCell];
    }
    return self;
}




- (void)createCell {
    self.imagView = [[UIImageView alloc] init];
    [self.contentView addSubview:self.imagView];
    [_imagView release];
    
    self.titleLabel = [[UILabel alloc] init];
    [self.imagView addSubview:self.titleLabel];
    [_titleLabel release];
    
    self.label = [[UILabel alloc] init];
    [self.imagView addSubview:self.label];
    [_label release];
    
    self.imag1 = [[UIImageView alloc] init];
    [self.label addSubview:self.imag1];
    [_imag1 release];
    
    self.imag2 = [[UIImageView alloc] init];
    [self.label addSubview:self.imag2];
    [_imag2 release];
    
    self.imag3 = [[UIImageView alloc] init];
    [self.label addSubview:self.imag3];
    [_imag3 release];
    
    self.timeLabel = [[UILabel alloc] init];
    [self.label addSubview:self.timeLabel];
    [_timeLabel release];
    
    self.addressLabel = [[UILabel alloc] init];
    [self.label addSubview:self.addressLabel];
    [_addressLabel release];
    
    self.typeLabel = [[UILabel alloc] init];
    [self.label addSubview:self.typeLabel];
    [_typeLabel release];
    
    self.label1 = [[UILabel alloc] init];
    [self.label addSubview:self.label1];
    [_label1 release];
    
    self.label11 = [[UILabel alloc] init];
    [self.label addSubview:self.label11];
    [_label11 release];
    
    self.label2 = [[UILabel alloc] init];
    [self.label addSubview:self.label2];
    [_label2 release];
    
    self.label22 = [[UILabel alloc] init];
    [self.label addSubview:self.label22];
    [_label22 release];
    
    
    self.imag = [[UIImageView alloc] init];
    [self.label addSubview:self.imag];
    [_imag release];
    

}


- (void)layoutSubviews {
    [super layoutSubviews];
    
    _imagView.frame = CGRectMake(10, 10, 355, 200);
    _imagView.layer.cornerRadius = 10;
    _imagView.layer.masksToBounds = YES;
    _imagView.image = [UIImage imageNamed:@"www.png"];
  
    
    _label.frame = CGRectMake(5, 37, 345, 150);
    _label.layer.cornerRadius = 5;
    _label.layer.masksToBounds = YES;
    _label.backgroundColor = [UIColor whiteColor];
    
    _titleLabel.frame = CGRectMake(10, 5, 320, 30);
//    _titleLabel.backgroundColor = [UIColor whiteColor];
    
    _imag1.frame = CGRectMake(10, 10, 20, 20);
//    _imag1.backgroundColor = [UIColor yellowColor];
    
    _imag2.frame = CGRectMake(10, 40, 20, 20);
//    _imag2.backgroundColor = [UIColor yellowColor];
    
    _imag3.frame = CGRectMake(10, 70, 20, 20);
//    _imag3.backgroundColor = [UIColor yellowColor];
    
    
    _timeLabel.frame = CGRectMake(33, 10, 220, 20);
//    _timeLabel.backgroundColor = [UIColor yellowColor];
    
    _addressLabel.frame = CGRectMake(33, 40, 200, 20);
//    _addressLabel.backgroundColor = [UIColor yellowColor];

    _typeLabel.frame = CGRectMake(33, 70, 200, 20);
//    _typeLabel.backgroundColor = [UIColor yellowColor];

    _imag.frame = CGRectMake(250, 5, 90, 140);
//    _imag.backgroundColor = [UIColor yellowColor];
    
    _label1.frame = CGRectMake(15, 120, 60, 20);
//    _label1.backgroundColor = [UIColor yellowColor];
    
    _label11.frame = CGRectMake(70, 120, 40, 20);
//    _label11.backgroundColor = [UIColor yellowColor];
    
    _label2.frame = CGRectMake(120, 120, 50, 20);
//    _label2.backgroundColor = [UIColor yellowColor];
    
    _label22.frame = CGRectMake(160, 120, 40, 20);
//    _label22.backgroundColor = [UIColor yellowColor];
   
  
}






- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
